<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
    <title>开始使用layui</title>
    <link href="./layui/css/layui.css" rel="stylesheet">
</head>
<body>
<!-- 你的HTML代码 -->
<script src="./layui/layui.js"></script>
<script>
    // 一般直接写在一个js文件中
    layui.use(['layer', 'form'], function () {
        const layer = layui.layer, form = layui.form;

        layer.msg('Hello World');
    })
</script>
</body>
</html>